package com.mayikt.member.input.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value = "用户登陆参数")
public class UserLoginInpDTO {
    @ApiModelProperty(value = "手机号码")
    private String mobile;
    @ApiModelProperty(value = "密码")
    private String password;
    @ApiModelProperty(value = "登陆类型")
    private LoginType loginType;
    @ApiModelProperty(value = "设备信息")
    private String deviceInfo;

    public enum LoginType{
        ANDROID("Android"),
        IOS("IOS"),
        PC("PC"),
        QQ("QQ"),
        WECHAT("WeChat");
        private String loginType;
        LoginType(String type){
            this.loginType = type;
        }
        public String getLoginTypeStr(){
            return loginType;
        }
    }
}
